import {applyMiddleware, combineReducers, createStore} from 'redux'
import thunk from 'redux-thunk'
import { composeWithDevTools } from '@redux-devtools/extension'
import test from './mouble/test'
import register from './mouble/register'
import login from './mouble/login'
import home from './mouble/home'
import cate from './mouble/cate'
import mine from './mouble/mine'
import detail from './mouble/detail'
import shop from './mouble/shop'
//reducer
const reducer=combineReducers({
        // test,
        register,
        login,
        home,
        cate,
        mine,
        detail,
        shop
})

//创建仓库
const store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))
//导出仓库
export default store